package gogogo.liwushuo.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

import gogogo.liwushuo.R;

/**
 * Created by Puck on 2016/7/23.
 */
public class OpenPageActivity extends Activity{
    Handler handler = new Handler();

//    Handler handler = new Handler(new Handler.Callback() {
//        @Override
//        public boolean handleMessage(Message msg) {
//            switch (msg.what){
//                case 0x00:
//
//                break;
//            }
//            return false;
//        }
//    });
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mainpage);
//        handler.sendEmptyMessageAtTime(0x00,2000);
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(OpenPageActivity.this,MainActivity.class));
                finish();
            }
        },2000);
    }
}
